{% spaceless %}
<ul class="nav">
    {% for url, title in nav %}
    {% ifequal url current  %}
        <li><span class="currently">{{ title }}</span></li>
    {% else %}
        <li><a href="{{ url }}">{{ title }}</a></li>
    {% endifequal %}
    {% endfor %}
</ul>
{% endspaceless %}